package xcmg.device.dao.mapper.wechat.xgwj;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.wechat.xgwj.XgwjUserMachineDO;

@Mapper
public interface XgwjUserMachineMapper {


  /**
   *根据openId和征集编号获取用户机型信息
   *
   * @param openId
   * @param machineCode
   * @return
   */
  XgwjUserMachineDO itemByMachineCode(@Param("openId")String openId, @Param("machineCode")String machineCode);


  /**
   *修改用户机型信息
   *
   * @param machineDO
   * @return
   */
  Integer update(XgwjUserMachineDO machineDO);

  /**
   * 插入用户机型数据
   *
   * @param machineDO
   * @return
   */
  Integer insert(XgwjUserMachineDO machineDO);

  /**
   * 删除
   *
   * @param machineCode
   * @param openId
   * @return
   */
  Integer deleteByMachineCode(@Param("machineCode")String machineCode, @Param("openId") String openId);
}
